<?xml version="1.0" encoding="UTF-8"?>
<bpm-platform xmlns="http://www.camunda.org/schema/1.0/BpmPlatform"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://www.camunda.org/schema/1.0/BpmPlatform http://www.camunda.org/schema/1.0/BpmPlatform ">

  <job-executor>
    <job-acquisition name="default"/>
  </job-executor>

  <process-engine name="default">
    <job-acquisition>default</job-acquisition>
    <configuration>org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration</configuration>

    <properties>
      <property name="history">activity</property> <!-- do not remove, needed for PA variable test -->
      <property name="databaseSchemaUpdate">true</property>
      <property name="authorizationEnabled">true</property>
      <property name="jobExecutorDeploymentAware">true</property>

      <property name="jdbcUrl">jdbc:h2:mem:camunda1;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</property>
      <property name="jdbcDriver">org.h2.Driver</property>
      <property name="jdbcUsername">sa</property>
      <property name="jdbcPassword"></property>

    </properties>

    <plugins>
      <!-- plugin enabling Process Application event listener support -->
      <plugin>
        <class>org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin</class>
      </plugin>

      <!-- plugin enabling integration of camunda Spin -->
      <plugin>
        <class>org.camunda.spin.plugin.impl.SpinProcessEnginePlugin</class>
      </plugin>

      <!-- plugin enabling connect support -->
      <plugin>
        <class>org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin</class>
      </plugin>

    </plugins>
  </process-engine>

  <process-engine name="another-engine">
    <job-acquisition>default</job-acquisition>
    <configuration>org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration</configuration>

    <properties>
      <property name="history">activity</property> <!-- do not remove, needed for PA variable test -->
      <property name="databaseSchemaUpdate">true</property>
      <property name="authorizationEnabled">true</property>
      <property name="jobExecutorDeploymentAware">true</property>

      <property name="jdbcUrl">jdbc:h2:mem:camunda1;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</property>
      <property name="jdbcDriver">org.h2.Driver</property>
      <property name="jdbcUsername">sa</property>
      <property name="jdbcPassword"></property>
      <property name="javaSerializationFormatEnabled">true</property>

    </properties>

    <plugins>
      <!-- plugin enabling Process Application event listener support -->
      <plugin>
        <class>org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin</class>
      </plugin>

      <!-- plugin enabling integration of camunda Spin -->
      <plugin>
        <class>org.camunda.spin.plugin.impl.SpinProcessEnginePlugin</class>
      </plugin>

      <!-- plugin enabling connect support -->
      <plugin>
        <class>org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin</class>
      </plugin>

    </plugins>
  </process-engine>

</bpm-platform>